package 小实验;

public class 静态变量 {
    static int a;
    int b;
    static int c;

    public static int cMethod() {
        c++;
        return c;
    }
    public int aMethod() {
        a++;
        return a;
    }
    public int bMethod() {
        b++;
        return b;
    }

    public static void main(String[] args){
        静态变量 test1 = new 静态变量();

        test1.aMethod();

        System.out.println(test1.aMethod());

        静态变量 test2 = new 静态变量();

        test2.bMethod();

        System.out.println(test2.bMethod());

        静态变量 test3 = new 静态变量();
        test3.cMethod();
        System.out.println(test3.cMethod());
    }
}
